import axios from '../../network/axios'

// 查询所有促销策略
export function getPromotionlList(params = {}) {
  return axios({
    url: '/vip-promotion/list',
    method: 'get',
    params
  })
}

// 查询款号指定销售时间的促销折数
export function getStyleNumberDiscountList(params = {}) {
  return axios({
    url: '/vip-promotion/getStyleNumberDiscount',
    method: 'get',
    params
  })
}

// 查询款号指定销售时间的促销折数
export function addPromotionInsert(params = {}) {
  return axios({
    url: '/vip-promotion/insert',
    method: 'post',
    data: params
  })
}

// 查询款号指定销售时间的促销折数
export function deletePromotion(params = {}) {
  return axios({
    url: '/vip-promotion/delete',
    method: 'delete',
    params: {
      id: params
    }
  })
}
